﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using WebsiteBanThucAn.Models;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace WebsiteBanThucAn.Models
{
    public class HappyFastFoodContext : DbContext
    {
        public DbSet<MonAnModel> MonAns { get; set; }
        public DbSet<LoaiMonAnModel> LoaiMonAns { get; set; }
        public DbSet<KhachHangModel> KhachHangs { get; set; }
        public DbSet<QuangCaoModel> QuangCaos { get; set; }
        public DbSet<DatHangModel> DatHangs { get; set; }
        public DbSet<DathangCTModel> DatHangCTs { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
